package cn.ipenta.demo.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

/**
 * @author ipenta
 * @ClassName: IndexController
 * @Description: TODO
 * @date 2017-05-11 下午11:15
 */
@Controller
public class IndexController {

	@GetMapping("/")
	public String index() {
		return "index";
	}


	@GetMapping("/p/index")
	public String face(Map<String, Object> map) {
		map.put("name", "世纪东方计算机打飞机就分");
		return "ui/face";
	}

	@GetMapping("/admin")
	public String admin(Map<String, Object> map) {
		map.put("name", "admin");
		return "ui/admin";
	}

}
